package com.tz.farmer.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class FarmerCorrect implements Serializable {
    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "产品品种")
    private String classify;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "产品名称")
    private String name;

    @ApiModelProperty(value = "产品图片")
    private String picture;

    @ApiModelProperty(value = "辨别方法")
    private String distinguish;

    @ApiModelProperty(value = "辨别信息")
    private String information;

    @ApiModelProperty(value = "是否发布 0: 否  1 ： 是")
    private Integer isSued;

    @ApiModelProperty(value = "中文区分 0：农  1：鱼")
    private Integer property;

    @ApiModelProperty(value = "发布时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8" )
    private LocalDateTime releaseTime;

    @ApiModelProperty(value = "查看次数")
    private Integer selectNum;

    @ApiModelProperty(value = "置顶数值")
    private Integer top;

}